package cn.kpi.entity.sys;

import org.omg.CosNaming.NamingContextExtPackage.StringNameHelper;

import java.util.Date;

public class UserEntity {
    private long rowNum;
    private long userid;
    private String username;
    private String userpwd;
    private String realname;
    private String cardno;
    private int sex;
    private int age;
    private String nation;
    private String userjg;
    private String birthplace;
    private String domicileplace;
    private String zzmm;
    private Date birthday;
    private Long szdw;
    private String orgname;
    private String userno;
    private Date cjgzsj;
    private Date cjgagzsj;
    private String qualifications;
    private String degree;
    private String phone;
    private Long byuserid;
    private Date createtime;
    private String remark;

     private  int isdelete;
    private String keyword;

    private int maxroletype;
    private String rank;
    private Date joinpartytime;

    private Integer qqts;

    private String sexText;

    public String getSexText() {
        if (this.sex == 0) {
            return "男";
        }
        return "女";
    }

    public int getIsdelete() {
        return isdelete;
    }

    public void setIsdelete(int isdelete) {
        this.isdelete = isdelete;
    }

    public Integer getQqts() {
        return qqts;
    }

    public void setQqts(Integer qqts) {
        this.qqts = qqts;
    }

    private String rankTesx;
    private String statusText;

    public String getRankTesx() {
        if (this.rank != null) {
            switch (this.rank) {

                case "1":
                    return "处级领导干部";


                case "2":
                    return "科级领导干部";

                case "3":
                    return "民警";

                case "4":
                    return "未定职务(新录用公务员)";

                case "5":
                    return " 领导班子";

                default:
                    return "";


            }
        } else {
            return "";
        }


    }

    public void setRankTesx(String rankTesx) {
        if (rankTesx.equals("处级领导干部")) rankTesx = "1";
        if (rankTesx.equals("科级领导干部")) rankTesx = "2";
        if (rankTesx.equals("民警")) rankTesx = "3";
        if (rankTesx.equals("未定职务(新录用公务员)")) rankTesx = "4";
        if (rankTesx.equals("领导班子")) rankTesx = "5";

        this.rank = rankTesx;
    }

    public String getStatusText() {
        if (this.status == 0) {
            return "正常";
        } else if (this.status == 1) {
            return "停用";
        }
        return "";
    }

    private Long groupid;
    private Long roleid;
    private String groupname;
    private String rolename;

    private int usertype;
    private String homeurl;
    private int status;
    private String usergw;

    private String ldzw;
    private String fldzw;
    private String grsf;
    private String csgz;
    private Long rsgxszdw;

    private Long rsgxszbm;
    private String zzjyxl;
    private String zzjyxw;
    private String jxxx;

    private String rsgxorgname;
    private String userstatus;

    private Float fallVaca;
    private Float matterVaca;
    private String workdeptnum;
    private String workleadernum;
    private String workyearnum;
    private Float nowork;
    private Float sfjb;


    public String getRank() {
        return rank;
    }

    public void setRank(String rank) {
        this.rank = rank;
    }

    public Float getSfjb() {
        return sfjb;
    }

    public void setSfjb(Float sfjb) {
        this.sfjb = sfjb;
    }

    public Date getJoinpartytime() {
        return joinpartytime;
    }

    public void setJoinpartytime(Date joinpartytime) {
        this.joinpartytime = joinpartytime;
    }

    public String getUserstatus() {
        return userstatus;
    }

    public void setUserstatus(String userstatus) {
        this.userstatus = userstatus;
    }

    public String getWorkdeptnum() {
        return workdeptnum;
    }

    public Float getNowork() {
        return nowork;
    }

    public void setNowork(Float nowork) {
        this.nowork = nowork;
    }

    public void setWorkdeptnum(String workdeptnum) {
        this.workdeptnum = workdeptnum;
    }

    public String getWorkleadernum() {
        return workleadernum;
    }

    public void setWorkleadernum(String workleadernum) {
        this.workleadernum = workleadernum;
    }

    public String getWorkyearnum() {
        return workyearnum;
    }

    public void setWorkyearnum(String workyearnum) {
        this.workyearnum = workyearnum;
    }

    public Float getFallVaca() {
        return fallVaca;
    }

    public void setFallVaca(Float fallVaca) {
        this.fallVaca = fallVaca;
    }

    public Float getMatterVaca() {
        return matterVaca;
    }

    public void setMatterVaca(Float matterVaca) {
        this.matterVaca = matterVaca;
    }

    public long getRowNum() {
        return rowNum;
    }

    public void setRowNum(long rowNum) {
        this.rowNum = rowNum;
    }

    public long getUserid() {
        return userid;
    }

    public void setUserid(long userid) {
        this.userid = userid;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getUserpwd() {
        return userpwd;
    }

    public void setUserpwd(String userpwd) {
        this.userpwd = userpwd;
    }

    public String getRealname() {
        return realname;
    }

    public void setRealname(String realname) {
        this.realname = realname;
    }

    public String getCardno() {
        return cardno;
    }

    public void setCardno(String cardno) {
        this.cardno = cardno;
    }

    public int getSex() {
        return sex;
    }

    public void setSex(int sex) {
        this.sex = sex;
    }


    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getNation() {
        return nation;
    }

    public void setNation(String nation) {
        this.nation = nation;
    }

    public String getUserjg() {
        return userjg;
    }

    public void setUserjg(String userjg) {
        this.userjg = userjg;
    }

    public String getBirthplace() {
        return birthplace;
    }

    public void setBirthplace(String birthplace) {
        this.birthplace = birthplace;
    }

    public String getDomicileplace() {
        return domicileplace;
    }

    public void setDomicileplace(String domicileplace) {
        this.domicileplace = domicileplace;
    }

    public String getZzmm() {
        return zzmm;
    }

    public void setZzmm(String zzmm) {
        this.zzmm = zzmm;
    }

    public Date getBirthday() {
        return birthday;
    }

    public void setBirthday(Date birthday) {
        this.birthday = birthday;
    }

    public Long getSzdw() {
        return szdw;
    }

    public void setSzdw(Long szdw) {
        this.szdw = szdw;
    }

    public String getOrgname() {
        return orgname;
    }

    public void setOrgname(String orgname) {
        this.orgname = orgname;
    }

    public String getUserno() {
        return userno;
    }

    public void setUserno(String userno) {
        this.userno = userno;
    }

    public Date getCjgzsj() {
        return cjgzsj;
    }

    public void setCjgzsj(Date cjgzsj) {
        this.cjgzsj = cjgzsj;
    }

    public Date getCjgagzsj() {
        return cjgagzsj;
    }

    public void setCjgagzsj(Date cjgagzsj) {
        this.cjgagzsj = cjgagzsj;
    }

    public String getQualifications() {
        return qualifications;
    }

    public void setQualifications(String qualifications) {
        this.qualifications = qualifications;
    }

    public String getDegree() {
        return degree;
    }

    public void setDegree(String degree) {
        this.degree = degree;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public Long getByuserid() {
        return byuserid;
    }

    public void setByuserid(Long byuserid) {
        this.byuserid = byuserid;
    }

    public Date getCreatetime() {
        return createtime;
    }

    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public int getMaxroletype() {
        return maxroletype;
    }

    public void setMaxroletype(int maxroletype) {
        this.maxroletype = maxroletype;
    }

    public String getKeyword() {
        return keyword;
    }

    public void setKeyword(String keyword) {
        this.keyword = keyword;
    }

    public Long getGroupid() {
        return groupid;
    }

    public void setGroupid(Long groupid) {
        this.groupid = groupid;
    }

    public Long getRoleid() {
        return roleid;
    }

    public void setRoleid(Long roleid) {
        this.roleid = roleid;
    }

    public String getGroupname() {
        return groupname;
    }

    public void setGroupname(String groupname) {
        this.groupname = groupname;
    }

    public String getRolename() {
        return rolename;
    }

    public void setRolename(String rolename) {
        this.rolename = rolename;
    }

    public int getUsertype() {
        return usertype;
    }

    public void setUsertype(int usertype) {
        this.usertype = usertype;
    }

    public String getHomeurl() {
        return homeurl;
    }

    public void setHomeurl(String homeurl) {
        this.homeurl = homeurl;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public String getUsergw() {
        return usergw;
    }

    public void setUsergw(String usergw) {
        this.usergw = usergw;
    }

    public String getLdzw() {
        return ldzw;
    }

    public void setLdzw(String ldzw) {
        this.ldzw = ldzw;
    }

    public String getFldzw() {
        return fldzw;
    }

    public void setFldzw(String fldzw) {
        this.fldzw = fldzw;
    }

    public String getGrsf() {
        return grsf;
    }

    public void setGrsf(String grsf) {
        this.grsf = grsf;
    }

    public String getCsgz() {
        return csgz;
    }

    public void setCsgz(String csgz) {
        this.csgz = csgz;
    }

    public Long getRsgxszdw() {
        return rsgxszdw;
    }

    public void setRsgxszdw(Long rsgxszdw) {
        this.rsgxszdw = rsgxszdw;
    }

    public Long getRsgxszbm() {
        return rsgxszbm;
    }

    public void setRsgxszbm(Long rsgxszbm) {
        this.rsgxszbm = rsgxszbm;
    }

    public String getZzjyxl() {
        return zzjyxl;
    }

    public void setZzjyxl(String zzjyxl) {
        this.zzjyxl = zzjyxl;
    }

    public String getZzjyxw() {
        return zzjyxw;
    }

    public void setZzjyxw(String zzjyxw) {
        this.zzjyxw = zzjyxw;
    }

    public String getJxxx() {
        return jxxx;
    }

    public void setJxxx(String jxxx) {
        this.jxxx = jxxx;
    }

    public String getRsgxorgname() {
        return rsgxorgname;
    }

    public void setRsgxorgname(String rsgxorgname) {
        this.rsgxorgname = rsgxorgname;
    }


}
